首页> 外文OA文献 >dotCall64: An Efficient Interface to Compiled C/C++ and Fortran Code Supporting Long Vectors
【2h】

dotCall64: An Efficient Interface to Compiled C/C++ and Fortran Code Supporting Long Vectors

机译:dotCall64:编译C / C ++和Fortran代码的高效接口   支持长矢量

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

The R functions .C() and .Fortran() can be used to call compiled C/C++ andFortran code from R. This so-called foreign function interface is convenient,since it does not require any interactions with the C API of R. However, itdoes not support long vectors (i.e., vectors of more than 2^31 elements). Toovercome this limitation, the R package dotCall64 provides .C64(), which can beused to call compiled C/C++ and Fortran functions. It transparently supportslong vectors and does the necessary castings to pass numeric R vectors to64-bit integer arguments of the compiled code. Moreover, .C64() features amechanism to avoid unnecessary copies of function arguments, making itefficient in terms of speed and memory usage.
机译:R函数.C()和.Fortran()可用于从R调用已编译的C / C ++和Fortran代码。由于无需与R的C API进行任何交互,因此所谓的外部函数接口非常方便。但是,它不支持长向量(即,大于2 ^ 31个元素的向量)。为了克服此限制,R包dotCall64提供了.C64(),可用于调用已编译的C / C ++和Fortran函数。它透明地支持长向量,并进行必要的强制转换以将数字R向量传递给已编译代码的64位整数参数。此外,.C64()具有机制性,可以避免不必要的函数参数副本,从而在速度和内存使用方面均有效。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
代理获取

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号